#ifndef AS5600_H
#define AS5600_H



#include "main.h"




/******************************************************************************/
extern long  cpr;
extern float full_rotation_offset;
extern long angle_data, angle_data_prev;
extern unsigned long velocity_calc_timestamp;
extern float angle_prev;
/******************************************************************************/
void MagneticSensor_Init(void);
float getAngle(void);
float getVelocity(void);
float shaftAngle(void);
float shaftVelocity(void);
float electricalAngle(void);
/******************************************************************************/
















#endif










